package clw.toy;

import java.util.List;

/**
 * @author chengliwei
 */
public class NativeClass implements Functionable {

    private Class clazz;

    NativeClass(Class clazz){
        this.clazz = clazz;
    }

    @Override
    public int arity() {
        return 0;
    }

    @Override
    public Object call(Interpreter interpreter, List<Object> arguments) {
        NativeInstance instance = new NativeInstance(clazz);
        return instance;
    }
}
